package com.aqie.meet;

import android.util.Log;

import androidx.lifecycle.ProcessLifecycleOwner;

import com.aqie.libcommon.app.BaseApplication;
import com.aqie.libfactory.Factory;
import com.tencent.bugly.Bugly;

import cn.jpush.android.api.JPushInterface;


/**
 * @author aqie
 * @date 2021/2/5 22:02
 */
public class MeetApplication extends BaseApplication {
    public static String registrationID = "";
    @Override
    public void onCreate() {
        super.onCreate();
        ProcessLifecycleOwner.get().getLifecycle().addObserver(new ProcessLifecycleObserver());
        // Framework.getFramework().initFramework(this);
        // 调用Factory进行初始化
        Factory.setup();
        /*ApiService.init("http://47.104.240.41:8084/api", null);*/

        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
        registrationID = JPushInterface.getRegistrationID(this);
        Bugly.init(getApplicationContext(), "e71787a240", false);
        Log.e("MeetApplication", registrationID);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }
}
